Skip to content

Scotland | Glasgow| Mansoor Munawar | Sprint 2 | jq#517

Open
MansoorM11 wants to merge 1 commit intoCodeYourFuture:mainfrom
MansoorM11:jq-Mansoor
Open

Scotland | Glasgow| Mansoor Munawar | Sprint 2 | jq#517
MansoorM11 wants to merge 1 commit intoCodeYourFuture:mainfrom
MansoorM11:jq-Mansoor

Conversation

@MansoorM11
Copy link
Copy Markdown

@MansoorM11 MansoorM11 commented May 4, 2026

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

Completed exercises which require the use of jq command to achieve the desired result.

@github-actions

This comment has been minimized.

@MansoorM11 MansoorM11 added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label May 4, 2026
Comment thread jq/script-07.sh
# Your output should contain 6 lines, each with one word and one number on it.
# The first line should be "Ahmed 4" with no quotes.

jq -r '.[] | .name + " " + (.scores[-1] | tostring) ' scores.json No newline at end of file
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why use different approaches in script-06.sh and in this script?

Comment thread jq/script-11.sh
# The input for this script is the scores.json file.
# TODO: Write a command to output the total of adding together all scores from all games from all players.
# Your output should be exactly the number 164.
jq -r '[ .[] | .scores[] ] | add ' scores.json No newline at end of file
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why use toString in script-10.sh and not in this script?

@cjyuan cjyuan added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels May 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Reviewed Volunteer to add when completing a review with trainee action still to take.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants